import request from '@/utils/system/request'


// 新增
export function add(data: object) {
  return request({
    url: '/menu/menu',
    method: 'post',
    data
  })
}

// 编辑
export function update(data: object) {
  return request({
    url: '/menu/menu',
    method: 'put',
    data
  })
}

// 删除
export function del(data: object) {
  return request({
    url: '/menu/menu',
    method: 'delete',
    data
  })
}